

package jetbrains.buildServer.server.graphql.model.mutation;


import jetbrains.buildServer.server.graphql.model.Agent;
import jetbrains.buildServer.server.graphql.model.agentPool.AgentPool;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

public class MoveAgentToAgentPoolPayload {
  @NotNull
  private final Agent myAgent;

  @Nullable
  private final AgentPool mySourceAgentPool;

  @Nullable
  private final AgentPool myTargetAgentPool;

  public MoveAgentToAgentPoolPayload(@NotNull Agent agent, @Nullable AgentPool sourceAgentPool, @Nullable AgentPool targetAgentPool) {
    myAgent = agent;
    mySourceAgentPool = sourceAgentPool;
    myTargetAgentPool = targetAgentPool;
  }

  @NotNull
  public Agent getAgent() {
    return myAgent;
  }

  @Nullable
  public AgentPool getSourceAgentPool() {
    return mySourceAgentPool;
  }

  @Nullable
  public AgentPool getTargetAgentPool() {
    return myTargetAgentPool;
  }
}